﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Stock.Core.MongoDB;
using Stock.Model;
using Stock.Model.Entities;

namespace Stock.Core.Service
{
    public interface IOrderService
    {
        Task<BaseResult> insert(order model);
        Task<BaseResult> getList(DateTime starttime);
        Task<List<order>> getOrders(long startTime, long endTime);
        Task<List<order>> getMyOrders(Guid userid, long startTime, long endTime);
        Task<List<order>> getCurrentOrders(Guid userid);
        Task<long> getOrderTotal(Guid userid, long startTime);
        Task<bool> Update(order order, bool tran);
        Task<List<order>> getUnCountOrders(long startTime, long endTime);
        Task<List<order>> getMyUnCountOrders(Guid userid, long startTime, long endTime);
        Task<List<order>> getWeekOrders(Guid? userid, DateTime startTime, DateTime endTime);
        Task<dynamic> getAllUnCountOrdersSum();
        Task<BaseResult> getAllFinance();
        Task<bool> insertCheck(endLog model);
    }
}
